﻿Public Class Socio
    Private nroSocio As Integer
    Private nombre As String
    Private apellido As String
    Private nroDoc As Integer
    Private tipoDoc As String
    Private fechaNac As Date
    Private domicilio As New Domicilio
    Private club As New ClubBean
    Private esJugador As Boolean
    Private fechaAlta As Date

    Public Sub New()

    End Sub

    Public Property nroSocioInfo() As Integer
        Get
            Return nroSocio
        End Get
        Set(value As Integer)
            Me.nroSocio = value
        End Set
    End Property
    Public Property nombreInfo() As String
        Get
            Return nombre
        End Get
        Set(value As String)
            Me.nombre = value
        End Set
    End Property
    Public Property apellidoInfo() As String
        Get
            Return apellido
        End Get
        Set(value As String)
            Me.apellido = value
        End Set
    End Property
    Public Property nroDocInfo() As String
        Get
            Return nroDoc
        End Get
        Set(value As String)
            Me.nroDoc = value
        End Set
    End Property
    Public Property tipoDocInfo() As String
        Get
            Return tipoDoc
        End Get
        Set(value As String)
            Me.tipoDoc = value
        End Set
    End Property
    Public Property fechaNacInfo() As Date
        Get
            Return fechaNac
        End Get
        Set(value As Date)
            Me.fechaNac = value
        End Set
    End Property
    Public Property domicilioInfo() As Domicilio
        Get
            Return domicilio
        End Get
        Set(ByVal value As Domicilio)
            Me.domicilio.id_direccionInfo = value.id_direccionInfo
            Me.domicilio.calleInfo = value.calleInfo
            Me.domicilio.numeroInfo = value.numeroInfo
            Me.domicilio.codigoPostalInfo = value.codigoPostalInfo
            Me.domicilio.deptoInfo = value.deptoInfo
            Me.domicilio.pisoInfo = value.pisoInfo
        End Set
    End Property

    Public Property clubInfo() As ClubBean
        Get
            Return club
        End Get
        Set(value As ClubBean)
            Me.club.idInfo = value.idInfo
            Me.club.nombreInfo = value.nombreInfo
            Me.club.cuitInfo = value.cuitInfo
            Me.club.fechaFundacion = value.fechaFundacion
            Me.club.estadoCanchaInfo = value.estadoCanchaInfo
            Me.club.tipoPisoInfo = value.tipoPisoInfo
        End Set
    End Property

    Public Property esJugadorInfo() As Boolean
        Get
            Return esJugador
        End Get
        Set(value As Boolean)
            Me.esJugador = value
        End Set
    End Property

    Public Property fechaAltaInfo() As Date
        Get
            Return fechaAlta
        End Get
        Set(value As Date)
            Me.fechaAlta = value
        End Set
    End Property

End Class
